<script lang="ts" setup>
import { Popconfirm } from 'ant-design-vue'

defineOptions({ name: 'PopconfirmText' })
defineProps({
    enable: {
        type: Boolean,
        default: true
    }
})
</script>

<template>
    <Popconfirm v-bind="$attrs" v-if="enable">
        <slot></slot>
    </Popconfirm>
    <span v-else v-bind="$attrs">
        <slot></slot>
    </span>
</template>
